package com.ibm.interview.brno;

public class ArrayExampleJavaInterview {

    public String [][] fillArrayDuringDeclaration() {
        final String ABC = "ABC";
        final String [][] result = new String [] [] {{ABC, ABC, ABC},{ABC, ABC, ABC},{ABC, ABC,ABC}};
        return result;
    }

    public String [][] fillArrayAfterDeclaration(final int rows, final int cols) {
        final String [] [] result = new String [rows][cols];
        for (int i = 0; i < rows; i++) {
            for (int j = 0; j < cols; j++) {
                result [i] [j] =  "ABC";
            }
        }
        return result;
    }
}
